const Login = () => import(/* */ '../components/Login.vue')
const Home = () => import(/* */ '../views/home/Home.vue')
const Cart = () => import(/* */ '../views/Cart.vue')
const Mine = () => import(/* */ '../views/Mine.vue')
const Category = () => import(/* */ '../views/Category.vue')
const tabBar = () => import(/* */ '../components/tabBar.vue')
const Search = () => import(/**/ '../views/search/Search.vue')
const Article = () => import(/**/ '../views/article/Article.vue')
const routes = [
  {
    path: '/',
    name: 'Login',
    redirect: '/login'
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/index',
    component: tabBar,
    children: [
      {
        path: '/',
        component: Home,
        redirect: '/home'
      },
      {
        path: '/home',
        name: 'Home',
        component: Home
      },
      {
        path: '/cart',
        name: 'Cart',
        component: Cart
      },
      {
        path: '/mine',
        name: 'Mine',
        component: Mine
      },
      {
        path: '/category',
        name: 'Category',
        component: Category
      }
    ]
  },
  {
    path: '/search',
    component: Search
  },
  {
    path: '/article/:artId',
    component: Article
  }

]
export default routes
